-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix middleware display methods methods #687
Conversation
Checked commits martinpovolny/manageiq-ui-classic@7fe502c~...a623717 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks, I'll try tomorrow if everything works again. There is one another issue, now when the provider's show hamls are not being rendered, the angular controllers are not initialized properly, because it was done in those hamls. Here for instance: https://git.io/vyMc3 |
Uff, the I plan to remove them but not before I handle the special cases such as this one. |
@martinpovolny I can confirm that this will fix correct navigation from Middleware server to
However navigating from Middleware Domain to MW Server groups shows nothing. However this might be our problem @Jiri-Kremser (what do you think?). But otherwise looks good 👍 Thank you Martin for providing simple test, we'll continue from this. Oh and BTW, these Bugzillas are related to this PR: |
Since we are speaking about However I would not postpone this PR with this, and me, @Jiri-Kremser or @mtho11 can create follow-up PR with suggestions from Martin Hradil. |
Confirming that it helped for navigation from server to its entities. But when going from Domain to server group and from server group to server is still broken. The first case is without error but nothing happens and the second case throws:
I think, it's the same error I saw before I pulled these changes. |
btw. the only show haml that is being rendered according to logs is the |
Oh well https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/ems_common.rb#L98 is going to be responsible for rendering the wrong template. My fault. It would need something like It's a mess of overriding what was overridden together with default rendering by Rails. |
lgtm, we can fix the other issues in other PR |
@martinpovolny To fix the wrong template rendered you may just call render. An exception will be raised and you can rescue rendering the default_show_template. The actual working code is in israel-hdez@9dc8615 That would also fix #658, but I don't know if "trying and rescuing" is a suitable solution. |
@israel-hdez : that makes sense and would work. Thx! However I would prefer to see explicitly in the code what is going to happen. Actually I am trying to move any logic out of views and have it in the controller. Eventually I'd like to remove all the Another way to fix this might be moving the Another way might be providing simple I'll leave for @Jiri-Kremser to figure out the best way, add the specs and then I'll surely get back to this code as I will try to further simplify and unify the Generally I'd say that the |
Broken here: #590
Adding a sample nested list spec for one of the controllers.
Of cource it would be very convenient to have at least a single test for each screen (nested list in this case).
Ping @Jiri-Kremser, @karelhala